<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8" %>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ page import="com.twarder.struts.action.IndexAction"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html:html lang="true">
  <head>
	<base href="<%=basePath%>">
	<link style="text/css" rel="StyleSheet" href="<%=basePath%>css/home.css"></link>
	<link style="text/css" rel="StyleSheet" href="<%=basePath%>css/nav.css"></link>
<script type="text/javascript">
        function doClick(url)
        {
        	//check messages
        	if(typeof(parent.head.checkMessages)!="undefined")
        	parent.head.checkMessages();
        	document.forms[0].actionType.value = '<%=IndexAction.CLICK%>';
            document.forms[0].url.value = url;
            document.forms[0].submit();
        }
</script> 

  </head>
  
  <body>
  <html:form method="post" action="/menu.do" target="main">
    <input type="hidden" name="actionType"/>
    <input type="hidden" name="url"/>
   </html:form>
<div id="templatemo_menu_wrapper">
	<div id="templatemo_menu">    
   		<ul>
			<li><a class="current fast" href="javascript:doClick('/linkToMain.do?actionType=firstpage')"><b>首页</b></a></li> 
			<li><a href="javascript:doClick('/linkToMain.do?actionType=selfinfo')"	><b>个人资料</b></a></li>
			<li><a href="javascript:doClick('/linkToMain.do?actionType=ebookcenter')"><b>电子书中心</b></a></li>
			<li><a href="javascript:doClick('/linkToMain.do?actionType=blog')"><b>博客</b></a></li>
 		</ul>
	</div>
</div>
  </body>
</html:html>